package com.test.mooan.labama.bean_boom.star_dialog;

import com.google.gson.Gson;
import com.test.mooan.labama.utils_boom.Stringutil_boom;

import org.json.JSONObject;


public class ActiveWindowConfig_boom {

    private static ActiveWindowConfig_boom instance;

    private ActiveWindowConfig_boom(){}

    public static ActiveWindowConfig_boom gInstance_boom(){
        if (instance==null) instance = new ActiveWindowConfig_boom();
        return instance;
    }

    public static void parseyoungmeyData(JSONObject jsonObject){
        instance = new Gson().fromJson(jsonObject.toString(), ActiveWindowConfig_boom.class);
        instance.switch1 = jsonObject.optString("switch");
    }

    private int num;
    private String content;
    private String switch1;

    public int gNum_boom() {
        return num;
    }

    public String gContent_boom() {
        return Stringutil_boom.getSafeString(content);
    }

    public boolean isSwitch_boom(){
        return Stringutil_boom.getSafeString(switch1).equalsIgnoreCase("YES");
    }

}
